﻿﻿package com.glidecast.models
{
	import flash.events.EventDispatcher;
	import flash.events.Event;
	
	public class Content extends EventDispatcher
	{
		public static var UPDATE:String='ContentUpdated';
		
		public function Content()
		{	
		}
		
		// Q: Should this be an enumeration?
		private var _type:String='';
		public function get type():String
		{
			return _type;
		}
		public function set type(s:String):void
		{
			_type=s;
			dispatchEvent(new Event(Content.UPDATE));			
		}
		
		private var _url:String='';
		public function get url():String
		{
			return _url;
		}
		public function set url(s:String):void
		{
			_url=s;
			dispatchEvent(new Event(Content.UPDATE));			
		}
		private var _title:String='';
		public function get title():String
		{
			return _title;
		}
		public function set title(s:String):void
		{
			_title=s;
			dispatchEvent(new Event(Content.UPDATE));			
		}
		private var _rawtext:String='';
		public function get rawtext():String
		{
			return _rawtext;
		}
		public function set rawtext(s:String):void
		{
			_rawtext=s;
			dispatchEvent(new Event(Content.UPDATE));			
		}
		private var _cycletime:String='';
		public function get cycletime():String
		{
			return _cycletime;
		}
		public function set cycletime(s:String):void
		{
			_cycletime=s;
			dispatchEvent(new Event(Content.UPDATE));			
		}
		private var _rssitems: Array;
		public function get RSSItems():Array
		{
			return this._rssitems;
		}
		public function set RSSItems(newRSSItems: Array): void
		{
			this._rssitems=newRSSItems;
		}
	}
}
